/* 全局样式重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #2d3436;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* 按钮通用样式 */
button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 输入框通用样式 */
input, textarea {
  font-family: inherit;
  outline: none;
}

/* 选择文本样式 */
::selection {
  background: rgba(0, 184, 148, 0.2);
}

/* 动画类 */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.space-between {
  justify-content: space-between;
}

.space-around {
  justify-content: space-around;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100% !important;
    height: 200px;
    order: 2;
  }
  
  .main-content {
    order: 1;
    height: calc(100vh - 200px);
  }
  
  .welcome-title {
    font-size: 24px !important;
  }
  
  .welcome-subtitle {
    font-size: 14px !important;
  }
}

/* 主题颜色变量 */
:root {
  --primary-color: #00b894;
  --primary-dark: #00a085;
  --primary-light: #e8f5f3;
  --text-color: #2d3436;
  --text-light: #636e72;
  --border-color: #e0e0e0;
  --background-color: #f5f5f5;
  --white: #ffffff;
  --success: #00b894;
  --error: #d63031;
  --warning: #fdcb6e;
  --info: #74b9ff;
}